package com.glorystone.ins.dao;

import com.glorystone.ins.domain.Attachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:haoguodong
 * @Date:Created in 17:29 2018/3/14
 * @since: JDK 1.7
 * @projectName:IntelliJ IDEA
 * @Description:类功能描述
 */
public interface AttachmentMapper {

    int insert(Attachment record);

    Attachment selectByPrimaryKey(Integer tid);

    List<Attachment> selectFileInfoByTid(Long tid);

    Attachment findById(Long tid);

    List<Attachment> findAttechByBusinessId(@Param("businessId") Long businessId ,@Param("businessType") Integer businessType);

    void saveList(List<Attachment> list);

    void deleteByIdList(List<Long> waitDeleteIds);
}
